<template>
  <div style="background-color: antiquewhite">
    bus子组件
    <el-button @click="clickPar">向父组件传递参数</el-button>
  </div>
</template>

<script setup>
import Bus from "../../../config/Bus.js";
function clickPar() {
  Bus.$emit("change", "子组件点击了按钮");
}
</script>

<style></style>
